import request from '/@/utils/request'
import {prefix} from '/@/api/supplier/index'


export default{
  /**
   * 获取供应商评分
   */
  getGradeList(supplierInfoId: string) {
    return request({
      url: prefix + '/supplierGrade/getGradeList?supplierInfoId=' + supplierInfoId,
      method: 'get'
    })
  },


  /**
   * 添加供应商评分
   */
  create(data: object) {
    return request({
      url: prefix + '/supplierGrade/create',
      method: 'post',
      data
    })
  },


  /**
   * 删除供应商评分
   */
  delete(data: object) {
    return request({
      url: prefix + '/supplierGrade/delete',
      method: 'post',
      data
    })
  },


  /**
   * 删除供应商评分
   */
  edit(data: object) {
    return request({
      url: prefix + '/supplierGrade/edit',
      method: 'post',
      data
    })
  },

}
